package com.jiao.Controller;

import com.jiao.domain.Result;
import com.jiao.domain.VO.LinkVo;
import com.jiao.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Link")
public class LinkController {

    @Autowired
    LinkService linkService;

    @GetMapping("/selectAllLinkList")
    public Result<List<LinkVo>> selectAllLinkList(){
        return linkService.selectAllLinkList();
    }
}
